package solution;

import java.util.Set;

public interface Graph<V>{
    Set<V> vertices();

    Set<Edge<V>> edges();

    void addVertex(V v);

    void addEdge(V from, V to);

    void addEdge(V from, V to, double weight);

    Set<Edge<V>> neighbors(V v);
}
